_=[[
Filename: ip.lua
Created by.: VoidBoi
]]

_, botname = VH:GetConfig("config", "hub_security")

command_prefix = "^%.ip (%S+)"

function VH_OnParsedMsgChat(nick,data)
if string.find(data, command_prefix, 1) then
    _,_, usr = string.find(data, command_prefix, 1)
    result, sIP = VH:GetUserIP(usr)
    if string.len(sIP) > 7 then
        result, error = VH:SendDataToUser("<"..botname.."> "..usr.."'s IP is: "..sIP.."|", nick)
    else
        result, error = VH:SendDataToUser("<"..botname.."> FAGGOT FAIULURE (aka, user not found)|", nick)
    end
    return nil
end

return 1
end